import numpy
from numpy import sqrt
GL = {\
'tria':{\
3:[[[2/3.,1/6.,1/6.],1/3.],
   [[1/6.,2/3.,1/6.],1/3.],
   [[1/6.,1/6.,2/3.],1/3.]],
4:[[[1/3.,1/3.,1/3.],-0.5625],
   [[ 0.6, 0.2, 0.2],25/48.],
   [[ 0.2, 0.6, 0.2],25/48.],
   [[ 0.2, 0.2, 0.6],25/48.]],
6:[[[0.816847572980459,0.091576213509771,0.091576213509771],0.109951743655322],
   [[0.091576213509771,0.816847572980459,0.091576213509771],0.109951743655322],
   [[0.091576213509771,0.091576213509771,0.816847572980459],0.109951743655322],
   [[0.108103018168070,0.445948490915965,0.445948490915965],0.223381589678011],
   [[0.108103018168070,0.445948490915965,0.445948490915965],0.223381589678011],
   [[0.108103018168070,0.445948490915965,0.445948490915965],0.223381589678011]
   ],
7:[[[1/3.,1/3.,1/3.],0.225],
   [[0.797426985353087,0.101286507323456,0.101286507323456],0.125939180544827],
   [[0.101286507323456,0.797426985353087,0.101286507323456],0.125939180544827],
   [[0.101286507323456,0.101286507323456,0.797426985353087],0.125939180544827],
   [[0.059715871789770,0.470142064105115,0.470142064105115],0.132394152788506],
   [[0.470142064105115,0.059715871789770,0.470142064105115],0.132394152788506],
   [[0.470142064105115,0.470142064105115,0.059715871789770],0.132394152788506],
   ]},
'uni':{\
1:[[0.                              , 2.                       ]],
2:[[-1./sqrt(3)                     , 1.                       ],
   [ 1./sqrt(3)                     , 1.                       ]],
3:[[-sqrt(3/5.)                     , 5/9.                     ],
   [         0.                     , 8/9.                     ],
   [ sqrt(3/5.)                     , 5/9.                     ]],
4:[[-sqrt(3-2*sqrt(6/5.)/7.)        , (18.+sqrt(30.))/36.      ],
   [ sqrt(3-2*sqrt(6/5.)/7.)        , (18.+sqrt(30.))/36.      ],
   [-sqrt(3+2*sqrt(6/5.)/7.)        , (18.-sqrt(30.))/36.      ],
   [ sqrt(3+2*sqrt(6/5.)/7.)        , (18.-sqrt(30.))/36.      ]],
5:[[                      0.        , 128/225.                 ],
   [-(1/3.) * sqrt(5-2*sqrt(10/7.)) , (322.+13*sqrt(70.))/900. ],
   [ (1/3.) * sqrt(5-2*sqrt(10/7.)) , (322.+13*sqrt(70.))/900. ],
   [-(1/3.) * sqrt(5+2*sqrt(10/7.)) , (322.-13*sqrt(70.))/900. ],
   [ (1/3.) * sqrt(5+2*sqrt(10/7.)) , (322.-13*sqrt(70.))/900. ]]}}
